<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix='fmt' %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 

<title>简单搜索栏</title>
</head>
	<div class="simpleSearchOutDiv">
		<a href="forehome" ><img src="./img/site/simpleLogo.png" class="simpleLogo" id="simpleLogo" /></a>
			<form action="forsearch" method="post">
				<div class="pull-right simpleSearchDiv">
					<input type="text" name="keyword" placeholder="平衡车 原汁机">
		        	<button type="button" class="searchButton">搜天猫</button>
		        	<div class="searchBelow">
		        		<c:forEach items="${cs}" var="c" varStatus="st">
		        			<c:if test="${st.count>=8 and st.count<=11}">
		        				<span>
		        					<a href="forecategory?category.id=${c.id}">
		        						${c.name}
		        					</a>
		        					<c:if test="${st.count!=11}">
		        						<span>|</span>
		        					</c:if>
		        				</span>
		        			</c:if>
		        		</c:forEach>
		        	</div>
				</div>
			</form>
		<div style="clear:both" ></div>
	</div>
</html>